show Method |
This method shows a shortcut menu for the event fired.
Syntax
contextMenuID.show(fpEvent)
Parameters
Parameter |
Description |
---|---|
fpEvent |
Pointer that specifies the event for which the shortcut menu is to be shown. |
Return Value
No return value.
Example
The following example shows how show() method is called during oncontextmenu event of the button.
//function called on oncontextmenu event of the button function showContextMenu() { //myContext refers to the ID of the contextmenu defined in the page and event refers //to the event that called this function myContext.show(event); }